package xin.marcher.module.seller.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xin.marcher.module.seller.concurrent.PreheatCacheThreadPool;

/**
 *
 */
@Configuration
public class ThreadPoolConfig {

    /**
     * 发送消息共用的线程池
     * 最多允许多少线程同时执行任务：20
     */
    @Bean("preheatCacheThreadPool")
    public PreheatCacheThreadPool preheatCacheThreadPool() {
        return new PreheatCacheThreadPool(20);
    }

}
